import 'package:flutter/material.dart';

class AppBarPage extends StatelessWidget {
  const AppBarPage({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return DefaultTabController(
        length: 2,
        child: Scaffold(
          appBar: AppBar(
            title: Text('AppBar'),
            centerTitle: true,
            // backgroundColor: Colors.red,
            // leading: IconButton(
            //   icon: Icon(Icons.menu),
            //   onPressed: () {
            //     print('menu');
            //   }
            // ),
            actions: <Widget>[
              IconButton(
                  icon: Icon(Icons.search),
                  onPressed: () {
                    print('search');
                  }),
              IconButton(
                  icon: Icon(Icons.settings),
                  onPressed: () {
                    print('settings');
                  })
            ],
          ),
          body: Text('aaaaa'),
        ));
  }
}
